// Load Data
use Replication_Data_Framing_Origins_Covid

// Run Models and Store Estimates
reg originscale i.condition
eststo originscaleme

reg costsue i.condition originscale 
eststo costsueme

reg research i.condition originscale
eststo researchme

reg personalsteps i.condition 
eststo personalstepsme

// Reproduce Table 2 - Origin Beliefs, Penalize China, Research
esttab originscaleme costsueme researchme using Reproduce_Tables.rtf , replace    ///
cells((b(f(2) l(Coef.) star) p(f(3) l(p-val)) ci(f(3) l(CI) ) ) se(f(2) l(SE) par)) ///
label ///
nobaselevel ///
coeflabels(_cons "Constant (Control)") ///
aic bic ///
starlevel(* .10 ** .05 *** .01) ///
nonum ///
collabels("{\i Coef.}" "{\i p-value}" "{\i 95% CI}") ///
mtitles("Origin Beliefs" "Penalize China" "Biomedical Research") ///
title("{\b Table 2 - Main Effects}") 

// Reproduce Table 3 - Prosocial Action

esttab personalstepsme using Reproduce_Tables.rtf , append  ///
cells((b(f(2) l(Coef.) star) p(f(3) l(p-val)) ci(f(2) l(CI) ) ) se(f(2) l(SE) par)) ///
label ///
nobaselevel ///
coeflabels(_cons "Constant (Control)") ///
aic bic ///
starlevel(* .10 ** .05 *** .01) ///
nonum ///
collabels("{\i Coef.}" "{\i p-value}" "{\i 95% CI}") ///
nomtitles ///
title("{\b Table 3 - Prosocial Action}") ///
legend
